import request from "@/utils/request";

// 查询钱包流水列表
export function walletFlowList(query) {
  return request({
    url: "/customerWalletFlow/page",
    method: "get",
    params: query,
  });
}

// 新增钱包流水
export function insertWalletFlow(data) {
  return request({
    url: "/customerWalletFlow/insert",
    method: "post",
    data: data,
  });
}

// 查询钱包流水详细
export function detailWalletFlow(id) {
  return request({
    url: "/customerWalletFlow/detail/" + id,
    method: "get",
  });
}

// 修改钱包流水
export function modifyWalletFlow(data) {
  return request({
    url: "/customerWalletFlow/modify",
    method: "put",
    data: data,
  });
}

// 删除钱包流水
export function delWalletFlow(id) {
  return request({
    url: "/customerWalletFlow/del/" + id,
    method: "delete",
  });
}
